@extends('system.frame_layout')
<?php $parent_menu = "财务中心"; $menu_selected = "打款申请记录";?>

@section('content')
    <div id="content-panel">
        <div class="row">
            <div class="col-xs-12">
                <div class="portlet light bordered">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-social-dribbble font-dark hide"></i>
                            <span class="caption-subject font-dark bold">我的打款记录 User Remit Logs</span>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <table class="table table-hover table-responsive">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>用户名</th>
                                <th>真实姓名</th>
                                <th>联系方式</th>
                                <th>打款金额</th>
                                <th>打款凭证</th>
                                <th>打款时间</th>
                                <th>打款方式</th>
                                <th>打款账户信息</th>
                                <th>备注信息</th>
                                <th>状态</th>
                                <th>后台处理意见</th>
                                <th>申请时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($logs as $log)
                                <tr>
                                    <td>{{ $log->no }}</td>
                                    <td>{{ $log->uname }}</td>
                                    <td>{{ $log->real_name }}</td>
                                    <td>{{ $log->phone }}</td>
                                    <td>{{ $log->money }}</td>
                                    <td><a href="{{ url($log->img) }}" target="_blank">点击查看</a></td>
                                    <td>{{ date("Y-m-d H:i:s",$log->time) }}</td>
                                    <td>
                                        @if($log->type == \App\Models\MWithdrawLog::$PAY_TYPE_YHK)
                                            银行卡打款
                                        @elseif($log->type == \App\Models\MWithdrawLog::$PAY_TYPE_ZFB)
                                            支付宝打款
                                        @elseif($log->type == \App\Models\MWithdrawLog::$PAY_TYPE_WX)
                                            微信打款
                                        @endif
                                    </td>
                                    <td>{{ $log->info }}</td>
                                    <td>{{ $log->remark == '' ? '无' : $log->remark }}</td>
                                    @if($log->status == \App\Models\MRemitLog::remit_apply)
                                        <td style="color: blue;">申请中</td>
                                    @elseif($log->status == \App\Models\MRemitLog::remit_yes)
                                        <td style="color: green;">已打款</td>
                                    @elseif($log->status == \App\Models\MRemitLog::remit_no)
                                        <td style="color: red;">已拒绝</td>
                                    @endif
                                    <td>{{ $log->msg == '' ? '暂无' : $log->msg }}</td>
                                    <td>{{ date("Y-m-d H:i:s",$log->apply_time) }}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>

                        @include('system.coms.fenye')

                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('footer')
@endsection